#! /usr/local/bin/python

import cgi

def hkd2usd(n): return n/7.8

print 'Content-type: text/html\n\n'
form = cgi.FieldStorage()
hkd = str(form["hkd"].value)
try:
  hkd = float(hkd)
  print str(hkd2usd(hkd))
except Exception, (inst):
  print "ERROR: "+str(inst)

